<template>
    <el-breadcrumb separator="/">
<!--        <el-breadcrumb-item v-for="(item, index) in navlist" :to="{path:'/'}" v-bind:key="index">-->
<!--            <a>{{item}}</a>-->
<!--        </el-breadcrumb-item>-->
    </el-breadcrumb>
</template>

<script>
export default {
    data(){
        return {
            current:'',
            navlist:[],
        }
    },
    beforeCreate() {
        this.navlist = this.$route.meta.navList;
    },
    created() {
        this.current = this.$route.name;
        this.navlist = this.$route.meta.navList;
    },
}
</script>

<style lang="less" scoped>
.el-breadcrumb{
    height:30px;
    line-height:20px;
}
</style>
